import random


class Game(object):
    top_score = 0;

    def __init__(self,player_name):
        self.player_name = player_name;
        self.score = 0;


    #显示游戏的帮助信息
    @staticmethod
    def show_help():
        print("帮助信息: 让僵尸进入大门");

    #返回历史最高分
    @classmethod
    def show_score(cls):
        return cls.top_score;

    #开始玩游戏
    def start_game(self):
        print("%s开始游戏了。。。" %self.player_name);
        self.score = random.randint(12,30);
        print("%s结束了游戏该局的分数是 %d" %(self.player_name,self.score));
        Game.top_score += self.score;

